/**
 * Created by 白雨浓 on 17-8-17 下午4:09.
 *
 * 表单验证简写
 */
export default {
  methods: {
    valid(form, callback){
      this.$refs[form].validate((valid) => {
        if (!valid)
          return false;
        //this.$refs['executorGroupForm'].resetFields();
        callback(valid);
      });
    }
  }
}
